<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>箭头函数</title>
</head>

<body>
    <p id="demo"></p>
    <script>
        const x = (x, y) => x * y;
        document.getElementById("demo").innerHTML = x(4, 3);
        document.write("<br>");
        const y = (x, y) => x + y;
        document.write(y(4, 3));
        document.write("<br>");
        const z = (x, y) => x * y - x;
        document.write(z(4, 3));
        document.write("<br>");
    </script>
</body>

</html>